home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bisonpcb.zip / FILES.H < prev    next >
Text File  |  1987-02-13  |  3KB  |  57 lines

  1. /* File names and variables for bison,
  2.    Copyright (C) 1984 Bob Corbett and Free Software Foundation, Inc.
  3.  
  4. BISON is distributed in the hope that it will be useful, but WITHOUT ANY
  5. WARRANTY.  No author or distributor accepts responsibility to anyone
  6. for the consequences of using it or for whether it serves any
  7. particular purpose or works at all, unless he says so in writing.
  8. Refer to the BISON General Public License for full details.
  9.  
  10. Everyone is granted permission to copy, modify and redistribute BISON,
  11. but only under the conditions described in the BISON General Public
  12. License.  A copy of this license is supposed to have been given to you
  13. along with BISON so you can know your rights and responsibilities.  It
  14. should be in a file named COPYING.  Among other things, the copyright
  15. notice and this notice must be preserved on all copies.
  16.  
  17.  In other words, you are welcome to use, share and improve this program.
  18.  You are forbidden to forbid anyone else to use, share and improve
  19.  what you give them.   Help stamp out software-hoarding!  */
  20.  
  21. /* These two should be pathnames for opening the sample parser files.
  22.    When bison is installed, they should be absolute pathnames.
  23.    XPFILE1 and XPFILE2 normally come from the Makefile.  */
  24.  
  25. #define PFILE1    "bison.sim"    /* WG */
  26. #define PFILE    "bison.hai"    /* WG */
  27.  
  28. #define OUTPUT_EXTENSION ".out"        /* WG */
  29. #define DEFINES_EXTENSION ".h"        /* WG */
  30. #define TABLE_EXTENSION ".c"        /* WG */
  31. #define ATTRIBUTE_EXTENSION ".att"    /* WG */
  32. #define GUARD_EXTENSION ".grd"        /* WG */
  33.  
  34. extern FILE *finput;   /* read grammar specifications */
  35. extern FILE *foutput;  /* optionally output messages describing the actions taken */
  36. extern FILE *fdefines; /* optionally output #define's for token numbers. */
  37. extern FILE *ftable;   /* output the tables and the parser */
  38. extern FILE *fattrs;   /* if semantic parser, output a .h file that defines YYSTYPE */
  39.                /* and also contains all the %{ ... %} definitions.  */
  40. extern FILE *fguard;   /* if semantic parser, output yyguard, containing all the guard code */
  41. extern FILE *faction;  /* output all the action code; precise form depends on which parser */
  42. /* JF nowaday fparser is used for whatever parser is in use, instead of
  43.    opening both of them. */
  44. extern FILE *fparser;  /* read the semantic parser to copy into ftable */
  45. /* JF   extern FILE *fparser1; */ /* read the simple parser to copy into ftable */
  46.  
  47. extern char *infile;
  48. extern char *outfile;
  49. extern char *defsfile;
  50. extern char *tabfile;
  51. extern char *attrsfile;
  52. extern char *guardfile;
  53. extern char *actfile;
  54. /* JF nobody seems to care about these
  55. extern char *pfile;
  56. extern char *pfile1; */
  57.